﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using FortuneHeaven.Web.Common;

namespace FortuneHeaven.Web.Pages.UserCenter
{
    public partial class RegisterSuccess : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            ltAcount.Text = Request["acount"];
            ltGameID.Text = Request["gameid"];
            if (!IsPostBack)
            {
                SetPageHeader(FortuneHeavenCommon.Enum.MainPageTabType.hidden);
                if (!string.IsNullOrEmpty(Request["spread_name"]))
                {
                    hSpread.Visible = true;
                    ltSpread.Text = Request.Url.GetLeftPart(UriPartial.Authority) + VirtualPathUtility.ToAbsolute("~/Pages/UserCenter/UserRegister.aspx") + "?spread_name=" + Server.UrlEncode(Request["spread_name"]);
                }
                else
                {
                    hSpread.Visible = false;
                }
            }
        }
    }
}